package day3;

/**
 * @author joker
 * @date 2022/4/21 0021 - 0:11
 */
public class Test03 {
    public static void main(String[] args) throws Exception {
//        try {
//            int a=1;
//            int b=0;
//            System.out.println(a/b);
//            System.out.println("try");
//        }catch (RuntimeException e){
////            throw new RuntimeException();
//        }finally {
//            System.out.println("finally");
//        }
//        System.out.println("try外");
//        int a=1;
//        int b=0;
//        System.out.println(a/b);
        System.out.println(m1());
    }
    public static int m1(){
        int a,b;
        String s;

        s = new String("a");
        try {
            System.out.println(s);
            a=1;
            return a;
        } catch (RuntimeException e){

        }finally {
            a = 2;
            System.out.println(s);
        }
        return a;
    }
}
